package com.brillilab.service.core.kit.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.brillilab.dao.mapper.kit.ReagentTypeHideMapper;
import com.brillilab.domain.po.kit.ReagentTypeHide;
import com.brillilab.service.core.kit.IReagentTypeHideService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ReagentTypeHideServiceImpl implements IReagentTypeHideService {

    @Resource
    private ReagentTypeHideMapper reagentTypeHideMapper;

    /**
     * @author WuMenghao
     * @discription 查询成员试剂隐藏状态
     * @param labId
     * @param labMemberId
     * @param isHide
     * @return
     */
    @Override
    public List<ReagentTypeHide> selectList(Long labId,Long labMemberId,Integer isHide) {
        return reagentTypeHideMapper.selectList(
                new LambdaQueryWrapper<ReagentTypeHide>()
                        .eq(ReagentTypeHide::getLabId,labId)
                        .eq(ReagentTypeHide::getLabMemberId,labMemberId)
                        .eq(ReagentTypeHide::getIsHide,isHide));
    }
}
